<include file="./head" />
<body>
  <div class="page theme-diy" id="page-index">
  <?php if($user){ ?>
   <?php if($user['balance']<1){?>
    <div id="tc_shop" ></div> 
    <?php }?>
  <?php }?>
      <div class="shop_top">
         <div class="wp">
         <div class="icon left shop_icon"> <span class="icon icon-cart"></span></div>
          <div class="searchbar right">
          <a class="searchbar-cancel">取消</a>
         <div class="search-input">
         <form action="?"  method="get">
         <label class="icon icon-search" for="search"></label>
         <input type="search" id='search' name="key" placeholder='<?php if(I('get.key')){ echo I('get.key');}else{?> 请输入商品名称 <?php } ?> '/>
         </form>
       </div>
     </div>
   </div>
<div class="content infinite-scroll shop_content" data-distance="100">

      <ul class="list_shop">
           <?php foreach ($shop_item as $v):?>
           <li>
             <a href="{:U('/user/shop/item',array('id'=>$v['id']))}" external>
             <div class="pic">
               <img src="<?php echo $v['litpic']; ?>" alt="">
               <?php if($v['tj']){?><span class="tj"></span><?php }?>
             </div>
             <div class="shop_title wp"><?php echo $v['title']; ?></div>
             <div class="info">
                <div class="wp">
                <div class="left price">
                   <span >零售价/套</span>
                   <?php $suk= json_decode($v['suk'],true); ?>
            
                    <p>￥<?php echo min(price_array($suk));?>-<?php echo max(price_array($suk));?></p>
                </div>
                <div class="left fencheng">
                   <span>提成/单</span>
                    <p>￥<?php echo min(ticheng_array($suk)); ?>-<?php echo max(ticheng_array($suk)); ?></p>
                </div>
                </div>
             </div>
             </a>
           </li>
          <?php endforeach;?>
        


      </ul>

</div>

 
 <div style="height:2rem;"></div>


 <include file="./foot_nav" />
</div>
<include file="./foot" />